//
//  DestinationDetailModel.m
//  LT
//
//  Created by dllo on 16/5/24.
//  Copyright © 2016年 dllo. All rights reserved.
//

#import "DestinationDetailModel.h"
#import "discountModel.h"
#import "detailsModel.h"


@implementation DestinationDetailModel

-(void)setValue:(id)value forUndefinedKey:(NSString *)key{

    if ([key isEqualToString:@"new_discount"]) {
        self.discount = value;
    }

}

-(void)setHot_city:(NSMutableArray *)hot_city{

    NSMutableArray *hotArray = [NSMutableArray array];
    for (NSDictionary *hotDic in hot_city) {
        detailsModel *detail = [[detailsModel alloc]init];
        [detail setValuesForKeysWithDictionary:hotDic];
        [hotArray addObject:detail];
    }
    _hot_city = [NSMutableArray arrayWithArray:hotArray];

}



@end
